package com.ding.dailyup.model;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import static javax.persistence.GenerationType.IDENTITY;
import org.hibernate.annotations.DynamicInsert;

@Entity
@DynamicInsert
@Table(name = "sys_notice")
public class SysNotice implements Serializable {
	public static final long serialVersionUID = 3584335760997456731L;
	private Long id;
	private String content;
	private Long sortKey;
	private Integer status;
	private LocalDateTime startTime;
	private LocalDateTime endTime;
	private LocalDateTime createTime;
	private LocalDateTime updateTime;

	public SysNotice() {
	}

	public SysNotice(String content, Long sortKey, Integer status,
			LocalDateTime startTime, LocalDateTime endTime,
			LocalDateTime createTime, LocalDateTime updateTime) {
		this.content = content;
		this.sortKey = sortKey;
		this.status = status;
		this.startTime = startTime;
		this.endTime = endTime;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "content")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "sortKey")
	public Long getSortKey() {
		return sortKey;
	}

	public void setSortKey(Long sortKey) {
		this.sortKey = sortKey;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "startTime")
	public LocalDateTime getStartTime() {
		return startTime;
	}

	public void setStartTime(LocalDateTime startTime) {
		this.startTime = startTime;
	}

	@Column(name = "endTime")
	public LocalDateTime getEndTime() {
		return endTime;
	}

	public void setEndTime(LocalDateTime endTime) {
		this.endTime = endTime;
	}

	@Column(name = "createTime")
	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	@Column(name = "updateTime")
	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

}